<template>
  <van-nav-bar
    :title="title"
    left-text="返回"
    left-arrow
    @click-left="$router.go(-1)"
  />
  <div class="info-head" v-if="descTitle">
    <div>
      <h2>{{ descTitle }}</h2>
      <p>{{ desc }}<span v-if="isPrice">获取额度</span></p>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: String,
    desc: String,
    descTitle: String,
    isPrice: {
      type: Boolean,
      default: false,
    },
  },
  setup() {},
};
</script>

<style lang="scss" scoped>
.info-head {
  background: #fff;
  padding: 20px 10px;
  margin-bottom: 10px;
  h2 {
    font-size: 24px;
  }
  p {
    margin-top: 10px;
    font-size: 14px;
    span {
      font-weight: bold;
    }
  }
}
</style>